/******************************************************************************
*@file  : main.c
*@brief : This file provides SPI Slave Demos
*@ver   : 1.0.0
*@date  : 2022.10.20
******************************************************************************/

#include "app.h"  
int main(void)
{
    HAL_Init();  
    
    SystemClock_Config(SYSCLK_180M_SRC_RC64M, RCC_PCLK1_DIV_1, RCC_PCLK2_DIV_1); 

    HAL_Init_Ex();
    
    BSP_UART_Init(UART1); 

//    BSP_PB_Init();

    printfS("--------------------------------------------------------------------\r\n");
    
    /*
        TEST_SLAVE_COMM_LOOP,
        TEST_SLAVE_COMM_IT,
        TEST_SLAVE_COMM_FULLDUPLEX
    */

    SPI_Slave_Test(TEST_SLAVE_COMM_LOOP);

    while(1)
    {
        
    }

}
